<!DOCTYPE html>
<html  class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
<header th:replace="/admin/index::header-fragment"></header>

<div class="layui-fluid">
  <div class="layui-row">
    <form class="layui-form" method="post" th:action="*{id}==null ? @{/admin/friendlinks} : @{/admin/friendlinks/{id}(id=*{id})} " th:object="${friendlink}"></form>
    <div class="layui-form-item">
      <input type="hidden" name="id" th:value="*{id}">
      <label for="blogname" class="layui-form-label">
        <span class="x-red">*</span>博客名称
      </label>
      <div class="layui-input-inline">
        <input type="text" id="blogname" name="blogname" required="" lay-verify="required"
               autocomplete="off" class="layui-input" th:value="*{blogname}" placeholder="博客名称">
      </div>
    </div>
    <div class="layui-form-item">
      <label for="blogaddress" class="layui-form-label">
        <span class="x-red">*</span>博客地址
      </label>
      <div class="layui-input-inline">
        <input  id="blogaddress" name="blogaddress" placeholder="博客地址" th:value="*{blogaddress}"
                required="" lay-verify="required" autocomplete="off" class="layui-input" >
      </div>
    </div>

    <div class="layui-form-item">
      <label for="blogname" class="layui-form-label">
        <span class="x-red">*</span>图片地址
      </label>
      <div class="layui-input-inline">
        <input id="pictureaddress" name="pictureaddress" placeholder="图片地址" th:value="*{pictureaddress}"
               required="" lay-verify="required" autocomplete="off" class="layui-input" >
      </div>
    </div>
    <div class="layui-form-item"></div>
    <div class="layui-form-item" th:unless="${#strings.isEmpty(message)}" th:text="|提示： ${message}">提示：不能添加重复的友链</div>

    <div class="layui-form-item" style="margin: 8vw">
      <button type="button" class="layui-btn" onclick="window.history.go(-1)" >返回</button>
      <button  class="layui-btn" lay-filter="add" lay-submit="">提交</button>
    </div>
    </form>
  </div>
</div>

  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>


</body>
</html>
